package com.itheima.d12_extends_overwrite;

/**
 * 猫类
 */
public class Cat extends Animal {


    public Cat() {
    }


    public void catchMouse() {
        System.out.println("抓老鼠");
    }


    @Override
    public void eat() {
        System.out.println("吃老鼠");
    }
}

